﻿<Window x:Class="BrokenCalculator.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:BrokenCalculator"
        mc:Ignorable="d"
        Title="Calculator" Height="630" Width="500" WindowStartupLocation="CenterScreen" Cursor="Arrow" ResizeMode="CanMinimize" ShowInTaskbar="True">
    <Grid Margin="0, 0, 4, 1">
        <TextBox x:Name="ResultBox" Height="83" Margin="4,56,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="481" TextAlignment="Right" FontSize="48" BorderThickness="0,0,10,0" HorizontalAlignment="Left" BorderBrush="#FF111111" Cursor="None" ScrollViewer.CanContentScroll="True" IsEnabled="False" AllowDrop="False" IsUndoEnabled="False" HorizontalScrollBarVisibility="Disabled"/>
        <Button x:Name="FactButton" Content="!" HorizontalAlignment="Left" Margin="4,207,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="Function"/>
        <Button x:Name="PowerButton" Content="^" HorizontalAlignment="Left" Margin="85,207,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="double_operand_function"/>
        <Button x:Name="SqrtButton" Content="√" HorizontalAlignment="Left" Margin="166,207,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="Function"/>
        <Button x:Name="PiButton" Content="π" HorizontalAlignment="Left" Margin="166,270,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="pi_button_click"/>
        <Button x:Name="ClearButton" Content="C" HorizontalAlignment="Left" Margin="328,207,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="clear_button_click"/>
        <Button x:Name="ClrEntryButton" Content="CE" HorizontalAlignment="Left" Margin="409,207,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="clr_entry_button_click"/>
        <Button x:Name="SinButton" Content="sin" HorizontalAlignment="Left" Margin="4,270,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="trig_function"/>
        <Button x:Name="CosButton" Content="cos" HorizontalAlignment="Left" Margin="4,333,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="trig_function"/>
        <Button x:Name="TanButton" Content="tan" HorizontalAlignment="Left" Margin="4,397,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="trig_function"/>
        <Button x:Name="NlogButton" Content="ln" HorizontalAlignment="Left" Margin="4,460,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="Function"/>
        <Button x:Name="LogButton" Content="log" HorizontalAlignment="Left" Margin="4,524,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="Function"/>
        <Button x:Name="EButton" Content="e" HorizontalAlignment="Left" Margin="247,270,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="e_button_click"/>
        <Button x:Name="SevenButton" Content="7" HorizontalAlignment="Left" Margin="85,333,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="FourButton" Content="4" HorizontalAlignment="Left" Margin="85,397,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="EightButton" Content="8" HorizontalAlignment="Left" Margin="166,333,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="FiveButton" Content="5" HorizontalAlignment="Left" Margin="166,397,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="NineButton" Content="9" HorizontalAlignment="Left" Margin="247,333,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="SixButton" Content="6" HorizontalAlignment="Left" Margin="247,397,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="OneButton" Content="1" HorizontalAlignment="Left" Margin="85,460,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="TwoButton" Content="2" HorizontalAlignment="Left" Margin="166,460,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="ThreeButton" Content="3" HorizontalAlignment="Left" Margin="247,460,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="ZeroButton" Content="0" HorizontalAlignment="Left" Margin="166,524,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="number_click" FontWeight="Bold"/>
        <Button x:Name="DecimalButton" Content="." HorizontalAlignment="Left" Margin="247,524,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="decimal_button_click"/>
        <Button x:Name="EqualsButton" Content="=" HorizontalAlignment="Left" Margin="328,524,0,0" VerticalAlignment="Top" Width="157" Height="60" FontSize="30" Click="equals_button_click"/>
        <Button x:Name="MrButton" Content="MR" HorizontalAlignment="Left" Margin="328,270,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="mr_button_click"/>
        <Button x:Name="McButton" Content="MC" HorizontalAlignment="Left" Margin="409,270,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="mc_button_click"/>
        <Button x:Name="MaddButton" Content="M+" HorizontalAlignment="Left" Margin="328,333,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="madd_button_click"/>
        <Button x:Name="MsubButton" Content="M-" HorizontalAlignment="Left" Margin="409,333,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="msub_button_click"/>
        <Button x:Name="DivideButton" Content="/" HorizontalAlignment="Left" Margin="328,397,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="double_operand_function"/>
        <Button x:Name="MultiplyButton" Content="x" HorizontalAlignment="Left" Margin="409,397,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="double_operand_function"/>
        <Button x:Name="SubButton" Content="-" HorizontalAlignment="Left" Margin="328,460,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="double_operand_function"/>
        <Button x:Name="AddButton" Content="+" HorizontalAlignment="Left" Margin="409,460,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="double_operand_function"/>
        <TextBox x:Name="EquationBox" Height="49" Margin="85,7,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="400" TextAlignment="Right" FontSize="30" BorderThickness="0,0,10,0" HorizontalAlignment="Left" Cursor="None" IsEnabled="False"/>
        <Label x:Name="MemoryLabel" Content="0" HorizontalAlignment="Left" Margin="4,7,0,0" VerticalAlignment="Top" Width="81" Height="49" FontSize="13.333"/>
        <Button x:Name="CopyButton" Content="Copy" HorizontalAlignment="Left" Margin="4,115,0,0" VerticalAlignment="Top" Width="51" Height="24" Click="copy_button_click" Cursor="Hand"/>
        <Button x:Name="PasteButton" Content="Paste" HorizontalAlignment="Left" Margin="61,115,0,0" VerticalAlignment="Top" Width="52" Height="24" Click="paste_button_click" Cursor="Hand"/>
        <Button x:Name="AngleUnitButton" Content="A-UNIT" HorizontalAlignment="Left" Margin="4,144,0,0" VerticalAlignment="Top" Width="157" Height="58" FontSize="30" Click="angle_unit_button_click" Focusable="False"/>
        <Button x:Name="NegateButton" Content="-n" HorizontalAlignment="Left" Margin="85,270,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="Function"/>
        <Button x:Name="BackButton" Content="←" HorizontalAlignment="Left" Margin="247,207,0,0" VerticalAlignment="Top" Width="75" Height="60" FontSize="30" Click="back_button_click"/>
        <Button x:Name="TrigModeButton" Content="T-MODE" HorizontalAlignment="Left" Margin="166,144,0,0" VerticalAlignment="Top" Width="157" Height="58" FontSize="30" Click="trig_mode_button_click" Focusable="False"/>

    </Grid>
</Window>
